home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-0295.lzh / AMOSLIST / text0070.txt < prev    next >
Encoding:
INI File  |  1995-03-01  |  2.6 KB  |  56 lines

  1. [...]
  2.  
  3. > seem to get my head round. Has anyone got any ideas on how to tackle the
  4. > problem? I suppose their really should be some sort of Newtonian Equasion
  5. > that should solve it..help!  
  6.  
  7. To work out who hit who you need to have two "strike zones" for the cars 
  8. - one at the front, and one that covers the rest of the car.  When a 
  9. collision occurs, the car whose front zone was hit is the "ramming" car, 
  10. and the other is the victim.  If both cars' front zones were hit, it was 
  11. a head on collision.  Ok, now you know who hit whom, you need to modify 
  12. the cars velocities a bit.  There is a Newtonian equation to do this, and 
  13. it's pretty simple - each object has a coefficient of elasticity which 
  14. dictates how much of their energy is lost and how much is transferred in 
  15. a collision.  Put simply, you just subtract a bit of the ramming cars 
  16. forward velocity and add it to the victim.  For example:
  17.  
  18. Car A has a horizontal velocity of 3m/s and a vertical velocity of 0m/s.
  19. Car B has a horizontal velocity of 1m/s and a vertical velocity of -1m/s.
  20.  
  21. Car A strikes Car B and the resultant velocities are :
  22.  
  23. Car A has a horizontal velocity of 2m/s and a vertical velocity of 
  24.    -0.125m/s.
  25. Car B has a horizontal velocity of 1.75m/s and a vertical velocity of 
  26.    -0.75m/s.
  27.  
  28. So, what happened?  Well, Car A transferred 25% of its velocities to Car 
  29. B and lost 8.33% to friction, heat, etc.  Car B transferred 12.5% of its 
  30. vertical velocity to Car B, but because Car A's horizontal component was 
  31. greater than Car B's, there was no return transfer.  (Also note that I 
  32. made these percentages up - increase or reduce them depending on how 
  33. bouncy you want the cars to be...)
  34.  
  35. Confused?  Tough. :)  Go get an A-Level Maths with Mechanics text book - 
  36. they give you the real-life equations...
  37.  
  38. (Actually, this reminds me I never finished my Newtonian extension that 
  39.  had all this stuff in it...  Maybe I'll get round to it one day.)
  40.  
  41. (Oh, and what TV show is this based on?  I don't remember any shows about 
  42.  crashing into cars last time I was there... :)  And how's Southampton 
  43.  doing?  Are there any shops in The Marlands yet?  Is The Joiner's Arms 
  44.  still there?  Has Diamond finally closed?  (I hope so...  Bunch of 
  45.  bastards.)  Is Game still in the Bargate Centre?  I miss the old dump...  
  46.  *sigh*  I guess I should've worked harder.  Can you believe I flunked 
  47.  out of SIHE of all places?   Oops, got a bit carried away...)
  48.  
  49. --
  50. GCS -d+ H+ s++:- g+ p? !au a- w+++            !Productions 1995
  51. v* C+++ UB+++A++++ P++ L++ E+ N+++       http://satelnet.org/~mentat/
  52. K+ !W--- M-- V po- Y+ t++ 5+ jx G?
  53. R tv++ D- B--- e+ u** h f r++ !n y+ "No matter where you go, there you are."
  54.  
  55.  
  56.